package zlx.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;


import javax.annotation.Resource;

@RestController
public class Oder8002Controller {

    public static final String PAYMENT8004_URL="http://cloud-provider-Payment";
    @Resource
    private RestTemplate restTemplate;

    @GetMapping(value = "/consumer/payment/zk")
    public String getPayment8004(){
        String result = restTemplate.getForObject(PAYMENT8004_URL+"/payment/zk", String.class);
        return result;
    }
}
